package org.arkeologgr.appening.service.json;

import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import org.arkeologgr.appening.entity.ItemDetails;


@XmlRootElement
public class ItemDetailsJSON {
	
	private ItemJSON item;
	
	private List<ItemCommentJSON> comments;
	
	private String description;
	
	private String imageUrl;
	
	public ItemDetailsJSON() {
		
	}

	public ItemDetailsJSON(ItemDetails itemDetails) {
		this.item = JSONConverter.toJsonItem(itemDetails.getItem());
		this.description = itemDetails.getDescription();
		this.imageUrl = itemDetails.getImageUrl();
	}

	public void setItem(ItemJSON item) {
		this.item = item;
	}

	public ItemJSON getItem() {
		return item;
	}

	public void setComments(List<ItemCommentJSON> comments) {
		this.comments = comments;
	}

	public List<ItemCommentJSON> getComments() {
		return comments;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getImageUrl() {
		return imageUrl;
	}
	
	

}
